import request from '@/utils/request';

export async function getWorkHoursRequestByPage (params: any) {
    return request('/api/product/getWorkHoursRequestByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addWorkHoursRequest (params: any) {
    return request('/api/product/addWorkHoursRequest', {
    method: 'POST',
    data: params,
  });
}

export async function updateWorkHoursRequest (params: any) {
    return request('/api/product/updateWorkHoursRequest', {
    method: 'POST',
    data: params,
  });
}

export async function delWorkHoursRequest (params: any) {
    return request('/api/product/delWorkHoursRequest', {
    method: 'POST',
    data: params,
  });
}


export async function exportWorkHoursRequest(params: any) {
    return request('/api/product/exportWorkHoursRequest', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getWorkHoursRequestByPage, addWorkHoursRequest, updateWorkHoursRequest, delWorkHoursRequest, exportWorkHoursRequest }
